package com.baidu.Chapter02;

import java.util.Scanner;

public class ex2_7 {
    public static void main(String[] args) {
        System.out.print("Enter a number of minutes：");
        Scanner sc=new Scanner(System.in);
        long minus = sc.nextLong();
        long years = minus/60/24/365;
        long days = (minus - years*365*24*60)/60/24;
        System.out.println(minus+" minutes is approximately "+years+" years and "+days+" days");
    }
}
